import request from '@/utils/request'

// 查询默认查询视图列表
export function listSearchDefaultView(query) {
  return request({
    url: '/view/searchDefaultView/list',
    method: 'get',
    params: query
  })
}

// 查询默认查询视图列表
export function saveSearchDefaultView(data) {
  return request({
    url: '/view/searchDefaultView/save',
    method: 'post',
    data: data
  })
}

// 根据ID查询默认视图
export function getSearchDefaultView(id) {
  return request({
    url: '/view/searchDefaultView/' + id,
    method: 'get'
  })
}

// 全部更新
export function executeAllUpdate() {
  return request({
    url: '/view/searchDefaultView/allUpdate',
    method: 'get'
  })
}

// 默认列表部署
export function submitDefaultViewDeployment(data) {
  return request({
    url: '/view/searchDefaultView/defaultViewDeployment',
    method: 'post',
    data: data
  })
}

// 删除默认查询视图
export function delSearchDefaultView(id) {
  return request({
    url: '/view/searchDefaultView/' + id,
    method: 'delete'
  })
}
